DVIPS=dvips -t a4 
LATEX=latex -file-line-error -halt-on-error
PDFLATEX=pdflatex -file-line-error -halt-on-error
PDFS=getting_rid.pdf

all: $(PDFS)

.PHONY: all

%.pdf: %.tex
	$(PDFLATEX) $^

%.dvi: %.tex
	$(LATEX) $^

%.ps: %.dvi
	$(DVIPS) -o $@ $^

clean:
	rm -f *.aux *.log *.dvi *.toc *.err $(PDFS)
